import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useTabbarStore = defineStore('tabbar', () => {
	const active = ref(0)
	
	// 切换选中项
	const setActive = (val) => {
		active.value = val
	}
	
	return {
		active,
		setActive
	}
})